package eu.jpereira.trainings.designpatterns.creational.abstractfactory;

import eu.jpereira.trainings.designpatterns.creational.abstractfactory.json.JSONReportBody;
import eu.jpereira.trainings.designpatterns.creational.abstractfactory.json.JSONReportFooter;
import eu.jpereira.trainings.designpatterns.creational.abstractfactory.json.JSONReportHeader;

public class JSONFactory extends AbstractFactory {

	private ReportBody body;
	private ReportFooter footer;
	private ReportHeader header;
	String reportType;
	
	public JSONFactory() {
		reportType = "JSON";
		body = new JSONReportBody();
		footer = new JSONReportFooter();
		header = new JSONReportHeader();
	}
	
	
	@Override
	public ReportBody getBody() {
		return body;
		
	}

	@Override
	public ReportFooter getFooter() {
		return footer;
		
	}

	@Override
	public ReportHeader getHeader() {
		return header;
		
	}

}
